/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Connection;

import java.sql.*;
import Configuracion.*;
import javax.swing.JOptionPane;

/**
 *
 * @author Nas
 */
public class Conexion {
    public Connection conn;

    public Connection getConexion() {
        
        try {
            Propiedad.loadConfig();
            Class.forName(DatoEstatico.CLASSFORNAME);
            conn = (Connection) DriverManager.getConnection(DatoEstatico.URL, DatoEstatico.USUARIO, DatoEstatico.PASSWORD);
            JOptionPane.showMessageDialog(null, "conecto");
        } catch (Exception e) {
        }
        return conn;
    }
}
